package org.sunflower.web;

import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ServerWebExchange;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-11-25 11:37
 **/
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping
    public String hello(ServerWebExchange exchange) {
        MultiValueMap<String, String> queryParams = exchange.getRequest().getQueryParams();
        return queryParams.toString();
    }
}

    